package cn.webrx;

public class Suan1 {
    public static void main(String[] args) {
        //long 10l  12L
        //float 5f  5.0  .3f
        //double d = 5;
        // + - * / % ++ --
        System.out.println(3+6); // 9
        System.out.println(3-6);//-3
        System.out.println(3*6);//18
        int n = 3*6;
        System.out.println(3/6);//0 求整商
        System.out.println(6%3);//0   %求余数
        System.out.println(3/6d);//0.5


        double ff = 10;
        System.out.println(ff);
        System.out.printf("%.6f",ff);
        System.out.println();
        System.out.printf("%.3f",Math.PI);


        //20 / 6 = xx ... yy
    }
}
